From f00d216182450961589c08c6996c00fe1ab0d127 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 1 Dec 2011 18:28:18 +0000 Subject: [PATCH] tools: init.d/Linux/xencommons: load evtchn and gntdev modules There is currently no code in the kernel to trigger autoload of the evtchn or gntdev drivers. Load them manually during xencommons start. Handle both pvops and xenlinux module names. Signed-off-by: Olaf Hering Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/hotplug/Linux/init.d/xencommons | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/hotplug/Linux/init.d/xencommons b/tools/hotplug/Linux/init.d/xencommons index 1378bef0fa..f02b25dabb 100644 --- a/tools/hotplug/Linux/init.d/xencommons +++ b/tools/hotplug/Linux/init.d/xencommons @@ -54,6 +54,11 @@ do_start () { local time=0 local timeout=30 + modprobe xen-evtchn 2>/dev/null + modprobe xen-gntdev 2>/dev/null + modprobe evtchn 2>/dev/null + modprobe gntdev 2>/dev/null + if ! `xenstore-read -s / >/dev/null 2>&1` then test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored" -- 2.30.2